package com.uni.crawl.service.crawl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.yulichang.base.MPJBaseService;
import com.uni.crawl.model.entity.crawl.CrawlNamespace;
import com.uni.crawl.model.form.crawl.CrawlNamespaceForm;
import com.uni.crawl.model.query.crawl.CrawlNamespacePageQuery;
import com.uni.crawl.model.vo.crawl.CrawlNamespaceNameVO;
import com.uni.crawl.model.vo.crawl.CrawlNamespaceVO;

import java.util.List;

/**
 * <p>
 * 爬虫空间 服务类
 * </p>
 *
 * @author JervisPG
 * @since 2023-12-16
 */
public interface CrawlNamespaceService extends MPJBaseService<CrawlNamespace> {

    Page<CrawlNamespaceVO> getPage(CrawlNamespacePageQuery pageQuery);

    List<CrawlNamespaceNameVO> nameList();

    boolean add(CrawlNamespaceForm form);

    CrawlNamespace getByNsCode(String nsCode);

    boolean update(Long id, CrawlNamespaceForm form);

    CrawlNamespaceForm getForm(Long id);

}
